package com.xyulu.controller.blog;

/**
 * @Author Xyulu
 * @Date 2021/4/14 20:29
 * @Version 1.0
 */

import com.xyulu.utils.ShiroUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class ArchiveController {

    @GetMapping("/archives")
    public String toArchive(HttpServletRequest request){

        request.setAttribute("user", ShiroUtil.getLocalUserName());
        return "blog/archives";
    }

}
